package com.beichuan_travel.interfaces.transform;

import com.beichuan_travel.model.dto.FoodDTO;
import com.beichuan_travel.model.dto.RestaurantDTO;
import com.beichuan_travel.model.po.FoodPO;
import com.beichuan_travel.model.po.RestaurantPO;
import com.beichuan_travel.model.vo.FoodVO;
import com.beichuan_travel.model.vo.RestaurantVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface RestaurantCovertBasic {

    RestaurantCovertBasic INSTANCE = Mappers.getMapper(RestaurantCovertBasic.class);

    RestaurantVO POtoCovertVO(RestaurantPO restaurantPO);

    RestaurantPO DTOtoCovertPO(RestaurantDTO restaurantDTO);

    List<RestaurantVO> POtoCoertVO(List<RestaurantPO> list);

    List<RestaurantPO> DTOtoCovertPO(List<RestaurantDTO> list);
}
